﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AteneoLibriBusinessLogic.Entities;

namespace AteneoLibriBusinessLogic.TOA
{
    public class CityAssembler
    {
        public static City Assembler(AteneoLibriEntityFramework.City item)
        {
            City c = new City();

            c.IdCity = item.IdCity;
            c.Description = item.Description;
            c.NationId = item.NationId;

            return c;
        }

        public static AteneoLibriEntityFramework.City DeAssembler(City item)
        {
            AteneoLibriEntityFramework.City c = new AteneoLibriEntityFramework.City();

            c.IdCity = item.IdCity;
            c.Description = item.Description;
            c.NationId = item.NationId;

            return c;
        }

        public static void WriteToEntity(AteneoLibriEntityFramework.City entity, City item)
        {
            entity.IdCity = item.IdCity;
            entity.Description = item.Description;
            entity.NationId = item.NationId;
        }

    }
}
